package com.dxs.demo.utils;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.swing.plaf.basic.BasicPanelUI;
import java.util.HashMap;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingDeque;

/**
 * @Classname ThreadPoolUtil
 * @Description TODO
 * @Date 2021/9/26 9:19
 * @Created by silence(dxs)
 */
@Configuration
public class ThreadPoolUtil {
    @Bean()
    public  ExecutorService get(){
        ExecutorService executorService = Executors.newFixedThreadPool(5);
        HashMap<Object, Object> objectObjectHashMap = new HashMap<>();
        objectObjectHashMap.size();
        return  executorService;
    }
}
